﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<dbPoll_Application.ViewModels.PollReportViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Reports
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class="pageHeadingContainer"><h2 class="pageHeading">Reports</h2></div>  
    <div id="contentContainer">
    
    <% if (Page.User.IsInRole("Poll Administrator"))
       { 
    %>
    
    <h3>Session Reports</h3>
        <table>
        <tr><td>Session History</td>
        <td><a href="<%=Url.Action("SystemHistoryGraphical") %>"><img src="../../Resources/graphic.png" /></a></td>
        </tr>
        </table>
    
    <% 
    } else {
    %>
    
    <h3>System Reports</h3>       
        <table>     
        <tr><td>System Utilisation</td>
        <td><a href="<%=Url.Action("SystemUtilizationTextual") %>"><img src="../../Resources/text.png" /></a></td>
        <td><a href="<%=Url.Action("SystemUtilizationGraphical") %>"><img src="../../Resources/graphic.png" /></a></td>
        </tr>    
        </table>        

    <% } %>

    </div>
        
</asp:Content>
